<!DOCTYPE html>
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="Generator" content="ECSHOP v2.7.3">
<meta charset="utf-8">
<title>美尚</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<link href="http://m.ecmoban.com/themes/default/images/touch-icon.png" rel="apple-touch-icon-precomposed">
<link href="http://m.ecmoban.com/themes/default/images/favicon.ico" rel="shortcut icon" type="image/x-icon">
<link href="css/ectouch.css" rel="stylesheet" type="text/css">
    <!--头部样式 start-->
    <link rel="stylesheet" type="text/css" href="css/base2013.css" charset="gbk">
    <link rel="stylesheet" type="text/css" href="css/all_html5.css" charset="gbk">
    <link charset="utf-8" type="text/css"   href="css/1001.css" rel="stylesheet">
    <!--头部样式  end-->
<script type="text/javascript" src="js/common.js"></script>
    <script type="text/javascript"  src="js/common_pc.js"></script>
<script type="text/javascript" src="js/shopping_flow.js"></script>
<script type="text/javascript" src="js/transport.js"></script>
<script type="text/javascript" src="js/utils.js"></script>
<script type="text/javascript" src="js/TouchSlide.js"></script>
<script type="text/javascript" src="js/jquery-1.js"></script>
<script type="text/javascript" src="js/ectouch.js"></script>
 <script type="text/javascript"  src="js/jquery-1.6.2.min.js"></script>

    <link href="css/ectouch.css"
          rel="stylesheet" type="text/css">
    <script src="js/lxb.js"
            async="" charset="utf-8" type="text/javascript"></script>
    <script type="text/javascript"  src="js/common.js"></script>

</head>

<body ryt14337="1">
<header>
    <div class="new-header" id="header">
        <div class="header_l">
            <a href="index.php" class="ico_10">返回</a>
        </div>


        <h2>购物车 </h2>
        <a href="javascript:void(0)" id="btnJdkey" class="new-a-jd"><span>美尚键</span></a>
    </div>
    <div class="new-jd-tab" style="display:none" id="jdkey">
        <div class="new-tbl-type">
            <a href="index.php" class="new-tbl-cell">
                <span class="icon">首页</span>

                <p style="color:#6e6e6e;">首页</p>
            </a>
            <a href="cat_all.php" class="new-tbl-cell">
                <span class="icon2 on">分类搜索</span>

                <p class="on" style="color:#6e6e6e;">分类搜索</p>
            </a>
            <a href="flow.php" id="html5_cart" class="new-tbl-cell">
                <span class="icon3">购物车</span>

                <p style="color:#6e6e6e;">购物车</p>
            </a>
            <a href="user.php" class="new-tbl-cell">
                <span class="icon4">我的美尚</span>

                <p style="color:#6e6e6e;">我的美尚</p>
            </a>
        </div>
    </div>
</header>
<!--<div id="page">-->
  <!--&lt;!&ndash;<header id="header">&ndash;&gt;-->
    <!--&lt;!&ndash;<div class="header_l"> <a class="ico_10" href="http://m.ecmoban.com/index.php"> 返回 </a> </div>&ndash;&gt;-->
    <!--&lt;!&ndash;<h1>购物车</h1>&ndash;&gt;-->
    <!--&lt;!&ndash;<div class="header_r"></div>&ndash;&gt;-->
  <!--&lt;!&ndash;</header>&ndash;&gt;-->

<!--</div>-->
<script src="js/TouchSlide.js"></script>

  <script type="text/javascript" src="js/showdiv.js"></script>
<script type="text/javascript">
      var user_name_empty = "请输入您的用户名！";
      var email_address_empty = "请输入您的电子邮件地址！";
      var email_address_error = "您输入的电子邮件地址格式不正确！";
      var new_password_empty = "请输入您的新密码！";
      var confirm_password_empty = "请输入您的确认密码！";
      var both_password_error = "您两次输入的密码不一致！";
      var show_div_text = "请点击更新购物车按钮";
      var show_div_exit = "关闭";
    </script>
<div class="cart-step" id="J_cartTab">
  <ul>
    <li class="cur">1.购物车列表</li>
    <li>2.确认订单</li>
    <li>3.购买成功</li>
  </ul>
</div>
<div class="blank3"></div>
<script>
    function changenum(rec_id,goods_id){
        //alert(1);
        //var goods_number = parseInt(document.getElementById('goods_number_'+rec_id).value);
        //alert(goods_number);
        //change_goods_number(rec_id,goods_number,goods_id);
        document.getElementById('formCart').submit();
    }

    function change_goods_number(rec_id, goods_number,goods_id)
    {
       // alert(rec_id);
        var attr = getSelectedAttributes(document.forms['ECS_FORMBUY']);
        Ajax.call('flow.php?step=ajax_update_cart', 'id='+goods_id+'&rec_id=' + rec_id +'&goods_number=' + goods_number+'&attr='+attr, change_goods_number_response, 'POST','JSON');
    }

    function change_goods_number_response(result)
    {
        if (result.error == 0)
        {
            var rec_id = result.rec_id;
            document.getElementById('total_number').innerHTML = result.total_number;//更新数量
            document.getElementById('goods_subtotal').innerHTML = result.total_desc;//更新小计
            if (document.getElementById('ECS_CARTINFO'))
            {//更新购物车数量
                document.getElementById('ECS_CARTINFO').innerHTML = result.cart_info;
            }
        }
        else if (result.message != '')
        {
            alert(result.message);
        }
    }
</script>
<section class="wrap" style="padding-bottom:5rem">
  <form id="formCart" name="formCart" method="post" action="flow.php">
    <ul class="radius10 itemlist">

     <!--购物车遍历 start-->
      {foreach from=$goods_list item=attr}

        <li class="new-tbl-type">
            <div class="itemlist_l new-tbl-cell">
                <a href="goods.php?id={$attr.goods_id}" target="_blank"> <img class="lazy" src="../../{$attr.goods_thumb}" title="{$attr.goods_name}" border="0"> </a>
            </div>
            <div class="itemlist_l new-tbl-cell">
                {if $attr.goods_attr}
                    <table style="float:left">
                        <tr><td style="text-align:center;color:#333;font-size: 16px"><b>{$lang.goods_attr}</b></td></tr>
                        <tr><td>{$attr.goods_attr|nl2br}</td></tr>
                    </table>
                {/if}
            </div>
            <div class="desc new-tbl-cell">
                <a style="color:#333;font-size: 16px" href="goods.php?id={$attr.goods_id}" target="_blank" class="fragment"><b>{$attr.goods_name}</b></a>
                <div style="clear:both"> </div>
                <p>  </p>
                <div class="b">
                    <em class="price">{$attr.subtotal}</em>
                    <span style="jianju">x </span>
                    <span class="txt">
                        <input class="inputBg" min="1" max="1000" name="goods_number[{$attr.rec_id}]" id="goods_number_{$attr.rec_id}" value="{$attr.goods_number}" size="4" onblur="changenum({$attr.rec_id},{$attr.goods_id})" type="number"></span>
                    <a href="flow.php?step=drop_goods&id={$attr.rec_id}';" class="ico_08 cha"> </a>
                </div>
            </div>
        </li>

      {/foreach}

     <!--购物车遍历  end-->

          </ul>
    <input name="step" value="update_cart" type="hidden">
  </form>
</section>
<footer class="toolbar">
  <p>合计: <em class="price" id="goods_subtotal">{$total.goods_price}</em></p>
  <a href="flow.php?step=checkout">结算(<em class="num" id="total_number">{$number}</em>)</a> </footer>
<div class="blank3"></div>
<div style="width:1px; height:1px; overflow:hidden"><a href="http://www.ecshop.com/" target="_blank" style=" font-family:Verdana; font-size:11px;">Powered&nbsp;by&nbsp;<strong><span style="color: #3366FF">ECShop</span>&nbsp;<span style="color: #FF9966">v2.7.3</span></strong></a>&nbsp;</div>

<script type="text/javascript">
var process_request = "正在处理您的请求...";
var username_empty = "用户名不能为空。";
var username_shorter = "用户名长度不能少于 3 个字符。";
var username_invalid = "用户名只能是由字母数字以及下划线组成。";
var password_empty = "登录密码不能为空。";
var password_shorter = "登录密码不能少于 6 个字符。";
var confirm_password_invalid = "两次输入密码不一致";
var email_empty = "Email 为空";
var email_invalid = "Email 不是合法的地址";
var agreement = "您没有接受协议";
var msn_invalid = "msn地址不是一个有效的邮件地址";
var qq_invalid = "QQ号码不是一个有效的号码";
var home_phone_invalid = "家庭电话不是一个有效号码";
var office_phone_invalid = "办公电话不是一个有效号码";
var mobile_phone_invalid = "手机号码不是一个有效号码";
var msg_un_blank = "* 用户名不能为空";
var msg_un_length = "* 用户名最长不得超过7个汉字";
var msg_un_format = "* 用户名含有非法字符";
var msg_un_registered = "* 用户名已经存在,请重新输入";
var msg_can_rg = "* 可以注册";
var msg_email_blank = "* 邮件地址不能为空";
var msg_email_registered = "* 邮箱已存在,请重新输入";
var msg_email_format = "* 邮件地址不合法";
var msg_blank = "不能为空";
var no_select_question = "您没有完成密码提示问题的操作";
var passwd_balnk = "密码中不能包含空格";
var username_exist = "用户名 %s 已经存在";
var compare_no_goods = "您没有选定任何需要比较的商品或者比较的商品数少于 2 个。";
var btn_buy = "购买";
var is_cancel = "取消";
var select_spe = "请选择商品属性";
</script>

</body></html>